﻿<%@ Page Language="C#" AutoEventWireup="true" Codebehind="lowdamagereport.aspx.cs"
    Inherits="LabMS.Web.Equipment.LowValue.lowdamagereport" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>低值品报损</title>
    <link type="text/css" rel="stylesheet" href="../../style/screen.css" />
    <!--[if lte IE 6]>
    <link type="text/css" rel="stylesheet" href="../../style/ie6.css" />
    <![endif]-->
    <!--[if lte IE 7]>
    <link type="text/css" rel="stylesheet" href="../../style/ie7.css" />
    <![endif]-->

    <script src="../../js/calendar5.js" type="text/javascript"></script>

    <script type="text/javascript" src="../../js/Common.js"></script>

    <script type="text/javascript">
        function OpenEditWin(frmWin, width, height, obj1, obj2) {
            var me;
            me = window;
            var ret = window.showModalDialog(frmWin, me, 'dialogWidth=' + width + 'px;dialogHeight=' + height + 'px;help:no;status:no');
            if (ret != null) {
                document.getElementById(obj1).value = ret[0];
                document.getElementById(obj2).value = ret[1];
            }
        }

        function LocationChange() {
            Url = "../../CommonPage/consumselectlist.aspx";
            Url = Url + "?type=lowvalue&location=" + document.getElementById("tbLocationCode").value;
            document.getElementById("tbUrl").value = Url;
        }

        var c = new Calendar("c");
        document.write(c);
    </script>

</head>
<body class="mainBody">
    <form id="form1" runat="server">
        <div class="main">
            <div id="pageInfo" class="clearfix">
                <div class="title">
                    <label>
                        实验低值品报损</label>
                </div>
            </div>
        </div>
        <div class="main">
            <p>
                <asp:Button ID="lbReportDamage" runat="server" Text="报损" OnClick="lbReportDamage_Click"
                    CssClass="button" />
                <asp:Button ID="lbReportDead" runat="server" Text="报废" OnClick="lbReportDead_Click"
                    CssClass="button" />
                <asp:Button ID="lbReportLost" runat="server" Text="报失" OnClick="lbReportLost_Click"
                    CssClass="button" />
            </p>
            <table cellpadding="4" cellspacing="0" border="0">
                <tr>
                    <td>
                        <label class="itemTitle">
                            实验室名称:</label></td>
                    <td>
                        <asp:DropDownList ID="ddlLab" runat="server">
                        </asp:DropDownList>
                    </td>
                    <td>
                    </td>
                    <td>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            资产管理人:</label></td>
                    <td>
                        <asp:TextBox ID="tbManager" runat="server"></asp:TextBox></td>
                    <td>
                        <label class="itemTitle">
                            联系电话:</label></td>
                    <td>
                        <asp:TextBox ID="tbTelNum" runat="server"></asp:TextBox></td>
                </tr>
                <tr>
                <td>
                        <label class="itemTitle">
                            库存位置:</label></td>
                    <td>
                        <input id="tbUrl" runat="server" style="display: none" type="text" />
                        <asp:TextBox ID="tbLocation" runat="server" MaxLength="40"></asp:TextBox>
                        <input id="btnWindowsLcoation" onclick="OpenEditWinOther('../Common/Location.aspx',600,400)"
                            type="button" value="..." class="button" />
                    </td>
                    <td>
                        <label class="itemTitle">
                            低值品编号:</label><asp:Label ID="Label1" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="tbInstrumentNum" runat="server"></asp:TextBox>
                          <input onclick="LocationChange();OpenEditWin(document.getElementById('tbUrl').value,500,400, 'tbInstrumentNum','tbInstrumentName')"
                            type="button" value="..." class="button" /></td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            低值品名称:</label></td>
                    <td>
                        <asp:TextBox ID="tbInstrumentName" runat="server"></asp:TextBox></td>
                    <td>
                        <label class="itemTitle">
                            是否保修期内:</label></td>
                    <td>
                        <asp:DropDownList ID="isInTime" runat="server">
                            <asp:ListItem Text="是" Value="是"></asp:ListItem>
                            <asp:ListItem Text="否" Value="否"></asp:ListItem>
                        </asp:DropDownList>
                    </td>
                </tr>
                <tr>
                    <td>
                        <label class="itemTitle">
                            申请人:</label><asp:Label ID="Label2" runat="server" ForeColor="Red" Text="*"></asp:Label></td>
                    <td>
                        <asp:TextBox ID="tbApplyer" runat="server"></asp:TextBox>
                        <input id="lbRecipientor" onclick="OpenEditWin('../../CommonPage/TeacherList.aspx',500,400,'tbApplyerCode', 'tbApplyer')"
                            type="button" value="..." class="button" />
                        <input id="tbApplyerCode" runat="server" style="display: none" type="text" />
                    </td>
                    <td>
                        <label class="itemTitle">
                            报损时间:</label></td>
                    <td>
                        <asp:TextBox ID="tbReportTime" runat="server"></asp:TextBox>
                    </td>
                </tr>
                <tr>
                    <td valign="top">
                        <label class="itemTitle">
                            故障情况:</label></td>
                    <td colspan="3">
                        <asp:TextBox ID="tbDescription" runat="server" TextMode="MultiLine" Height="100px"
                            Width="400px"></asp:TextBox></td>
                </tr>
            </table>
        </div>
         <div style="display: none">
            <asp:TextBox ID="tbLocationCode" runat="server"></asp:TextBox>
        </div> 
           <script type="text/javascript">

        function OpenEditWinOther(frmWin,width,height) 
      {       
           var me; 
           me = window;  
           var ret = window.showModalDialog(frmWin,me,'dialogWidth='+width +'px;dialogHeight='+height+'px;help:no;status:no');
              if (ret != null) 
            {
                document.getElementById("tbLocation").value = ret[1];
                document.getElementById("tbLocationCode").value = ret[0];
            }  
      } 
    </script> 
    </form>
</body>
</html>
